home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 13997 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: mars.asiabiz.com.sg!usenet
  2. From: user@asiabiz.com.sg (User Name)
  3. Newsgroups: comp.lang.c
  4. Subject: Driver in C and Assembly : accessing assm label from C
  5. Date: 11 Apr 1996 06:07:35 GMT
  6. Organization: Wearnes Thakral
  7. Message-ID: <4ki7j7$88g@mars.asiabiz.com.sg>
  8. Reply-To: softw@asiabiz.com.sg , sureener@pacific.net.sg
  9. NNTP-Posting-Host: 169.42.0.102
  10. X-Newsreader: WinVN 0.92.6+
  11.  
  12. Hi,
  13.  
  14. I am writing a device driver in C and with assembly patches. 
  15. I have a Strategy and Interrupt routine which is defined in the 
  16. Device header.
  17.  
  18. I have the driver name inside the device header and I do want to get the
  19. parameters from the command line arg and fill th 8 characters in the 
  20. header.
  21.  
  22. My main doubt is how to access the data segment from C and fill in with 
  23. the driver name received from the MSCDEX. 
  24.  
  25. And also another problem with the typedef structure.
  26.  
  27. In Assembly once I define the structure I can get the size of the
  28. structure using 'size' command. But in C is there any way to do the 
  29. same.
  30.  
  31. Please mail back!
  32.  
  33. Regards
  34. Suresh
  35.